package com.helei.springcloud.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;

/**
 * @author helei
 * @description OrderZKController
 * @date 2020/8/24 11:33
 */
@RestController
public class OrderZKController {
    public static final String URL = "http://cloud-provider-payment";
    @Resource
    private RestTemplate restTemplate;

    @GetMapping("/consumer/payment/zk")
    public String aa() {
        String cc = restTemplate.getForObject(URL + "/payment/zk", String.class);
        return cc;
    }
}
